import request from '@/utils/request'

//1. 列表学生
export function findStudents() {
  return request({
    url: '/student?cmd=list',
    method: 'post',
  })
}

//2. 分页查询
export function findByPage(page,pageSize) {
  return request({
    url: `/student?cmd=findByPage&page=${page}&pageSize=${pageSize}`,
    method: 'post',
  })
}

//3. 条件查询带分页
export function search(page,pageSize,student) {
  return request({
    url: `/student?cmd=search&page=${page}&pageSize=${pageSize}`,
    method: 'post',
    data:"stud="+student
  })
}
